﻿<%@ Control Language="C#" CodeBehind="" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<TimeItem>>" %>
<%@ Import Namespace="Epam.PhotoGallery.Interfaces.DataTransferObjects" %>
<div>
	<%	var blocks = Html.GetGellaryControlImageSize();
		int i = 0;
		
	%>
	<script type="text/javascript">
		document.write("<div style=' width: " + <%= blocks[++i]%> + "px; height: " + <%= blocks[++i]%> +  "px;'>");
	</script>
	<%--<div style="width: 400px">--%>
		<span>
			<% 
			
				



				foreach (TimeItem item in Model)
				{
			%>
			
				<script type="text/javascript">
					document.write("<img  class='albumCover' src='<%= Url.Content("~/Repository/Control/Images/")%><%=item.Id%>.jpeg?w="+<%= blocks[++i]%> + "&h="+<%= blocks[++i]%> +  "'/>");
				</script>
			
			<%
				//break;
			}
			%>
		</span>
	</div>
</div>
<%--<a href='#' ><img class='albumCover' onclick='ShowAlbum('<%= item.Id %>','<%= Url.Content("~/Gallery/GetDataForAlbums")%>','<%= Url.Content("~/Repository/Albums/Images/")%>')' src='<%= Url.Content("~/Repository/Control/Images/")%><%=item.Id;%>.jpeg?w=<%--= blocks[++i]%>&h=<%= blocks[++i]' />	--%>
